from django.conf.urls import url
from orders import views

urlpatterns = [

    # 确认订单
    url(r'^place$', views.PlaceOrderView.as_view(), name='place'),
    # 订单提交
    url(r'^commit$', views.CommitOrderView.as_view(), name='commit'),
    # 用户订单信息页面
    url(r'^(?P<page>\d+)$', views.UserOrderView.as_view(),name='info'),
    # 用户订单支付处理
    url(r'^pay$', views.PayView.as_view(), name='pay'),
    # 用户订单状态
    url(r'^checkpay$', views.CheckPayView.as_view(), name='checkpay'),
    # 订单评论
    url(r'comment/(?P<order_id>\d+)', views.CommentView.as_view(), name='comment'),

]